home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / kirby.swf / scripts / frame_18 / PlaceObject2_286_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-09-24  |  478b  |  18 lines

  1. onClipEvent(enterFrame){
  2.    Goto = 1 + random(3);
  3.    if(9 < this._currentframe)
  4.    {
  5.       duplicateMovieClip(this.S,"S" add Z,16384 + Z);
  6.       this["S" add forvar]._x = this.KirbyS._x;
  7.       this["S" add forvar]._y = this.KirbyS._y;
  8.       this["S" add forvar]._yscale = this.KirbyS._xscale;
  9.       this["S" add forvar]._xscale = this.KirbyS._yscale;
  10.       this["S" add forvar].goto = goto;
  11.       Z += 1;
  12.       if(20 < Z)
  13.       {
  14.          Z = 0;
  15.       }
  16.    }
  17. }
  18.